import BackendLayout from '@/layouts/backend-layout'

const meta = { auth: false }

const name = 'admin-champion'

export default {
    path: '/admin/champion',
    name,
    redirect: { name: `${name}-index` },
    meta,
    component: BackendLayout,
    children: [
        {
            path: 'index',
            name: `${name}-index`,
            meta: {
                title: '英雄管理'
            },
            component: () => import('@/pages/admin/champion/index')
        },
        {
            path: 'passive',
            name: `${name}-passive`,
            meta: {
                title: '被动管理'
            },
            component: () => import('@/pages/admin/champion/passive')
        },
        {
            path: 'spell',
            name: `${name}-spell`,
            meta: {
                title: '技能管理'
            },
            component: () => import('@/pages/admin/champion/spell')
        },
        {
            path: 'skin',
            name: `${name}-skin`,
            meta: {
                title: '皮肤管理'
            },
            component: () => import('@/pages/admin/champion/skin')
        }
    ]
};
